package com.yhb.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BalanceFlow {
    private String id;
    private String userId;
    private BigDecimal amount;
    private Type type;
    private Map<String, String> description;
    private Date occurTime;
    private String additionalInfos;

    public enum Type {
        TRADING,
        CPS_BONUS,
        ACTIVATE_BONUS,

        TRADING_WITHDRAW,
        CPS_BONUS_WITHDRAW,
        ACTIVATE_BONUS_WITHDRAW,

    }
}
